[#import "/framework/JGP.htm"  as JGP]
<!--
项目   jgp-cloud-parent
作者   LOUFEI [Gavin]
时间   2018/8/6
-->
[@JGP.head "Title"/]
[@JGP.body]
    <jgp-div slot="1-1" _row="['40','*']" _runit="px">
        <div slot="1-1">
            <jgp-btn _fn="addDeskTop">添加桌面</jgp-btn>
        </div>
        <div slot="2-1">
            <jgp-grid _id="deskTopGrid" _url="/security/admin/adminDeskTopApiController/queryDeskTop"
                      _check="false"></jgp-grid>
        </div>
    </jgp-div>
[/@JGP.body]

[@JGP.foot]
    <script>
        function addDeskTop() {
            var dialog = {
                'title': '添加桌面',
                'width': '400px',
                'height': '300px',
                'url': '/security/admin/adminDeskTopController/addDeskTop',
                'callback': function (result) {
                    if(result){
                        location.reload();
                    }
                }
            };
            JGP.$dialog(dialog);
        }
    </script>
[/@JGP.foot]